<!--
 * @Author: HeAo
 * @Date: 2021-09-29 10:21:56
 * @LastEditTime: 2021-09-29 11:29:43
 * @LastEditors: HeAo
 * @Description: 
 * @FilePath: \web2103-2105\web2103code\3-1-ES6\day05\4-async.html
 * 别乱动！
-->
<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
  <script src="./jquery.js"></script>
  <script>
    const baseURL = 'http://47.94.46.113:8888'
    async function findAllCategory() {
      let res = await $.ajax({
        url: baseURL + '/index/category/findAll',
        method: 'get'
      })

      // let res = await axios.get({
      //   url: baseURL + '/index/category/findAll',
      //   method: 'get'
      // })
      // return res
    }
    findAllCategory().then(res => { })
  </script>
</head>

<body>

</body>

</html>